﻿namespace Ha666.WebAPI.Controllers
{
    public class VerifiedParams
    {
        public static string VerfiedToken(string Token)
        {
            if (Token == null || string.IsNullOrWhiteSpace(Token))
                return "Token参数不能为空";
            if (Token.Length != 32)
            {
                return "Token参数长度出错";
            }
            if (!System.Text.RegularExpressions.Regex.IsMatch(Token, @"(^[A-Z0-9]+$)"))
                return "Token格式不正确";
            return "";
        }
    }
}